home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_volcano_snow2.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  8.5 KB  |  327 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_VOLCANO_SNOW2)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 1
  27. PT.Material = ENMAT_SIMPLEPARTICLE
  28.  
  29.  
  30. PT.TextureName = "environment_effect_volcano_snow1.dds"
  31.  
  32. PT.ParticlesPerSecond = 500.0;
  33. PT.InitialNumberOfParticles = 0.0;
  34. PT.BaseLifeTime = 3.0;
  35. PT.BaseLifeTimeVariance = 0.8;
  36. PT.BaseSpeed = 15.0;
  37. PT.BaseSpeedVariance = 0.8;
  38.  
  39. PT.TangentSpeed = 5.0;
  40. PT.TangentSpeedVariance = 1.0;
  41. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  42. PT.TangentDirection = vzbzd4
  43. vzbzd4:delete()
  44. PT.TangentAngleMin = 0.0;
  45. PT.TangentAngleMax = 6.28;
  46. PT.IsTangentDependOnBase = false;
  47.  
  48. PT.BaseAngle = 3.0;
  49. PT.BaseAngleVariance = 2.0;
  50. PT.BaseAngleSpeed = 0.5;
  51. PT.BaseAngleSpeedVariance = 1.0;
  52. PT.BaseAngleSpeedDirection = 0;
  53. local vzbzd5 = D3DXVECTOR3:new(0.0,-1.0,0.0)
  54. PT.BaseDirection = vzbzd5
  55. vzbzd5:delete()
  56. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  57. PT.BaseDirectionVariance = vzbzd6
  58. vzbzd6:delete()
  59. local vzbzd7 = D3DXVECTOR3:new(0,200,0)
  60. PT.BasePosition = vzbzd7
  61. vzbzd7:delete()
  62. local vzbzd8 = D3DXVECTOR3:new(200,250,200)
  63. PT.BasePositionVariance = vzbzd8
  64. vzbzd8:delete()
  65. PT.BaseSize = 2.0;
  66. PT.BaseSizeVariance = 0.8;
  67. PT.DirectionRelativeness = ENREL_WORLD
  68.  
  69. -- color over time
  70. PT.ColorOverTimeR[1].TimePercent = 0.0;
  71. PT.ColorOverTimeR[1].Value = 0.5;
  72. PT.ColorOverTimeG[1].TimePercent = 0.0;
  73. PT.ColorOverTimeG[1].Value = 0.5;
  74. PT.ColorOverTimeB[1].TimePercent = 0.0;
  75. PT.ColorOverTimeB[1].Value = 0.5;
  76.  
  77. PT.ColorOverTimeR[2].TimePercent = 0.1;
  78. PT.ColorOverTimeR[2].Value = 0.7;
  79. PT.ColorOverTimeG[2].TimePercent = 0.1;
  80. PT.ColorOverTimeG[2].Value = 0.7;
  81. PT.ColorOverTimeB[2].TimePercent = 0.1;
  82. PT.ColorOverTimeB[2].Value = 0.7;
  83.  
  84. PT.ColorOverTimeR[3].TimePercent = 0.3;
  85. PT.ColorOverTimeR[3].Value = 0.3;
  86. PT.ColorOverTimeG[3].TimePercent = 0.3;
  87. PT.ColorOverTimeG[3].Value = 0.3;
  88. PT.ColorOverTimeB[3].TimePercent = 0.3;
  89. PT.ColorOverTimeB[3].Value = 0.3;
  90.  
  91. PT.ColorOverTimeR[4].TimePercent = 0.5;
  92. PT.ColorOverTimeR[4].Value = 0.7;
  93. PT.ColorOverTimeG[4].TimePercent = 0.5;
  94. PT.ColorOverTimeG[4].Value = 0.7;
  95. PT.ColorOverTimeB[4].TimePercent = 0.5;
  96. PT.ColorOverTimeB[4].Value = 0.7;
  97.  
  98. PT.ColorOverTimeR[5].TimePercent = 0.55;
  99. PT.ColorOverTimeR[5].Value = 0.7;
  100. PT.ColorOverTimeG[5].TimePercent = 0.55;
  101. PT.ColorOverTimeG[5].Value = 0.7;
  102. PT.ColorOverTimeB[5].TimePercent = 0.55;
  103. PT.ColorOverTimeB[5].Value = 0.7;
  104.  
  105. PT.ColorOverTimeR[6].TimePercent = 0.65;
  106. PT.ColorOverTimeR[6].Value = 0.3;
  107. PT.ColorOverTimeG[6].TimePercent = 0.65;
  108. PT.ColorOverTimeG[6].Value = 0.3;
  109. PT.ColorOverTimeB[6].TimePercent = 0.65;
  110. PT.ColorOverTimeB[6].Value = 0.3;
  111.  
  112. PT.ColorOverTimeR[7].TimePercent = 1.0;
  113. PT.ColorOverTimeR[7].Value = 0.5;
  114. PT.ColorOverTimeG[7].TimePercent = 1.0;
  115. PT.ColorOverTimeG[7].Value = 0.5;
  116. PT.ColorOverTimeB[7].TimePercent = 1.0;
  117. PT.ColorOverTimeB[7].Value = 0.5;
  118.  
  119. -- transparency over time
  120. PT.TransparencyOverTime[1].TimePercent = 0.0;
  121. PT.TransparencyOverTime[1].Value = 0.0;
  122.  
  123. PT.TransparencyOverTime[2].TimePercent = 0.3;
  124. PT.TransparencyOverTime[2].Value = 1.0;
  125.  
  126. PT.TransparencyOverTime[3].TimePercent = 0.8;
  127. PT.TransparencyOverTime[3].Value = 1.0;
  128.  
  129. PT.TransparencyOverTime[4].TimePercent = 1.0;
  130. PT.TransparencyOverTime[4].Value = 0.0;
  131.  
  132. -- size over time
  133. PT.SizeOverTime[1].TimePercent = 0.0;
  134. PT.SizeOverTime[1].Value = 1.0;
  135.  
  136. PT.SizeOverTime[2].TimePercent = 1.0;
  137. PT.SizeOverTime[2].Value = 1.0;
  138.  
  139. -- Speed over time
  140. PT.SpeedOverTime[1].TimePercent = 0.0;
  141. PT.SpeedOverTime[1].Value = 1.0;
  142.  
  143. PT.SpeedOverTime[2].TimePercent = 1.0;
  144. PT.SpeedOverTime[2].Value = 1.0;
  145.  
  146. -- Tangent Speed over time
  147. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  148. PT.TangentSpeedOverTime[1].Value = 1.5;
  149.  
  150. PT.TangentSpeedOverTime[2].TimePercent = 0.3;
  151. PT.TangentSpeedOverTime[2].Value = 0.0;
  152.  
  153. PT.TangentSpeedOverTime[3].TimePercent = 0.7;
  154. PT.TangentSpeedOverTime[3].Value = -1.5;
  155.  
  156. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  157. PT.TangentSpeedOverTime[4].Value = 0.0;
  158.  
  159.  
  160. -- GravityAcceleration over time
  161. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  162. PT.GravityAccelerationOverTime[1].Value = 0.0;
  163.  
  164. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  165. PT.GravityAccelerationOverTime[2].Value = 0.0;
  166.  
  167. -- AngleSpeed over time
  168. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  169. PT.AngleSpeedOverTime[1].Value = 1.0;
  170.  
  171. PT.AngleSpeedOverTime[2].TimePercent = 0.3;
  172. PT.AngleSpeedOverTime[2].Value = 0.0;
  173.  
  174. PT.AngleSpeedOverTime[3].TimePercent = 0.7;
  175. PT.AngleSpeedOverTime[3].Value = -1.0;
  176.  
  177. PT.AngleSpeedOverTime[4].TimePercent = 1.0;
  178. PT.AngleSpeedOverTime[4].Value = 0.0;
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204. PT = Emitter.ParticleTypesParams[2]
  205. PT.IsEmitterLocked = false
  206. PT.DrawOrder = 2
  207. PT.Material = ENMAT_PARTICLE_LIGHT
  208.  
  209.  
  210. PT.TextureName = "environment_effect_volcano_snow3.dds"
  211.  
  212. PT.ParticlesPerSecond = 200.0;
  213. PT.InitialNumberOfParticles = 0.0;
  214. PT.BaseLifeTime = 3.0;
  215. PT.BaseLifeTimeVariance = 0.5;
  216. PT.BaseSpeed = 15.0;
  217. PT.BaseSpeedVariance = 0.8;
  218.  
  219. PT.TangentSpeed = 5.0;
  220. PT.TangentSpeedVariance = 1.0;
  221. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  222. PT.TangentDirection = vzbzd9
  223. vzbzd9:delete()
  224. PT.TangentAngleMin = 0.0;
  225. PT.TangentAngleMax = 6.28;
  226. PT.IsTangentDependOnBase = false;
  227.  
  228. PT.BaseAngle = 3.0;
  229. PT.BaseAngleVariance = 2.0;
  230. PT.BaseAngleSpeed = 0.5;
  231. PT.BaseAngleSpeedVariance = 1.0;
  232. PT.BaseAngleSpeedDirection = 0;
  233. local vzbzd10 = D3DXVECTOR3:new(0.0,-1.0,0.0)
  234. PT.BaseDirection = vzbzd10
  235. vzbzd10:delete()
  236. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  237. PT.BaseDirectionVariance = vzbzd11
  238. vzbzd11:delete()
  239. local vzbzd12 = D3DXVECTOR3:new(0,200,0)
  240. PT.BasePosition = vzbzd12
  241. vzbzd12:delete()
  242. local vzbzd13 = D3DXVECTOR3:new(200,150,200)
  243. PT.BasePositionVariance = vzbzd13
  244. vzbzd13:delete()
  245. PT.BaseSize = 1.8;
  246. PT.BaseSizeVariance = 0.1;
  247. PT.DirectionRelativeness = ENREL_WORLD
  248.  
  249. -- color over time
  250. PT.ColorOverTimeR[1].TimePercent = 0.0;
  251. PT.ColorOverTimeR[1].Value = 1.0;
  252. PT.ColorOverTimeG[1].TimePercent = 0.0;
  253. PT.ColorOverTimeG[1].Value = 0.3;
  254. PT.ColorOverTimeB[1].TimePercent = 0.0;
  255. PT.ColorOverTimeB[1].Value = 0.1;
  256.  
  257. PT.ColorOverTimeR[2].TimePercent = 1.0;
  258. PT.ColorOverTimeR[2].Value = 0.5;
  259. PT.ColorOverTimeG[2].TimePercent = 1.0;
  260. PT.ColorOverTimeG[2].Value = 0.5;
  261. PT.ColorOverTimeB[2].TimePercent = 1.0;
  262. PT.ColorOverTimeB[2].Value = 0.5;
  263.  
  264. -- transparency over time
  265. PT.TransparencyOverTime[1].TimePercent = 0.0;
  266. PT.TransparencyOverTime[1].Value = 0.0;
  267.  
  268. PT.TransparencyOverTime[2].TimePercent = 0.3;
  269. PT.TransparencyOverTime[2].Value = 1.0;
  270.  
  271. PT.TransparencyOverTime[3].TimePercent = 0.8;
  272. PT.TransparencyOverTime[3].Value = 1.0;
  273.  
  274. PT.TransparencyOverTime[4].TimePercent = 1.0;
  275. PT.TransparencyOverTime[4].Value = 0.0;
  276.  
  277. -- size over time
  278. PT.SizeOverTime[1].TimePercent = 0.0;
  279. PT.SizeOverTime[1].Value = 1.0;
  280.  
  281. PT.SizeOverTime[2].TimePercent = 1.0;
  282. PT.SizeOverTime[2].Value = 1.0;
  283.  
  284. -- Speed over time
  285. PT.SpeedOverTime[1].TimePercent = 0.0;
  286. PT.SpeedOverTime[1].Value = 1.0;
  287.  
  288. PT.SpeedOverTime[2].TimePercent = 1.0;
  289. PT.SpeedOverTime[2].Value = 1.0;
  290.  
  291. -- Tangent Speed over time
  292. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  293. PT.TangentSpeedOverTime[1].Value = 1.5;
  294.  
  295. PT.TangentSpeedOverTime[2].TimePercent = 0.3;
  296. PT.TangentSpeedOverTime[2].Value = 0.0;
  297.  
  298. PT.TangentSpeedOverTime[3].TimePercent = 0.7;
  299. PT.TangentSpeedOverTime[3].Value = -1.5;
  300.  
  301. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  302. PT.TangentSpeedOverTime[4].Value = 0.0;
  303.  
  304.  
  305. -- GravityAcceleration over time
  306. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  307. PT.GravityAccelerationOverTime[1].Value = 0.0;
  308.  
  309. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  310. PT.GravityAccelerationOverTime[2].Value = 0.0;
  311.  
  312. -- AngleSpeed over time
  313. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  314. PT.AngleSpeedOverTime[1].Value = 1.0;
  315.  
  316. PT.AngleSpeedOverTime[2].TimePercent = 0.3;
  317. PT.AngleSpeedOverTime[2].Value = 0.0;
  318.  
  319. PT.AngleSpeedOverTime[3].TimePercent = 0.7;
  320. PT.AngleSpeedOverTime[3].Value = -1.0;
  321.  
  322. PT.AngleSpeedOverTime[4].TimePercent = 1.0;
  323. PT.AngleSpeedOverTime[4].Value = 0.0;
  324.  
  325.  
  326.  
  327.